<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    //编译时不需要指定其类型
   let  a=10;

     let name="haha";

   
    console.log(typeof(a))
    a=name
    console.log(typeof(a))
</script>
</html>